package com.crm.service.impl.returnMoney;

import com.crm.dao.mapper.customMapper.returnMoneyManagerCustomMapper.BankFlowExamineCustomMapper;
import com.crm.dao.mapper.returnMoney.BankFlowExamineMapper;
import com.crm.model.entity.returnMoney.BankFlowExamine;
import com.crm.model.qo.returnMoney.BankFlowExamineQO;
import com.crm.model.vo.finishOrderProduct.FinishOrderProductVO;
import com.crm.model.vo.returnMoney.BankFlowExamineVO;
import com.crm.model.vo.returnMoney.ReturnMoneyVO;
import com.crm.service.returnMoney.BankFlowExamineDbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BankFlowExamineDbServiceImpl implements BankFlowExamineDbService {

    @Autowired
    private BankFlowExamineMapper bankFlowExamineMapper;
    @Autowired
    private BankFlowExamineCustomMapper bankFlowExamineCustomMapper;

    @Override
    public int insertSelective(BankFlowExamine bankFlowExamine) {
        return bankFlowExamineMapper.insertSelective(bankFlowExamine);
    }

    @Override
    public int getToBeExamineCount(String relationId) {
        return bankFlowExamineCustomMapper.getToBeExamineCount(relationId);
    }

    @Override
    public List<BankFlowExamineVO> selectList(BankFlowExamineQO bankFlowExamineQO) {
        return bankFlowExamineCustomMapper.selectList(bankFlowExamineQO);
    }

    @Override
    public BankFlowExamineVO selectByExamineId(String examineId) {
        return bankFlowExamineCustomMapper.selectByExamineId(examineId);
    }

    @Override
    public int updateByPrimaryKeySelective(BankFlowExamine bankFlowExamine) {
        return bankFlowExamineMapper.updateByPrimaryKeySelective(bankFlowExamine);
    }

    @Override
    public List<FinishOrderProductVO> selectProductList(BankFlowExamineQO bankFlowExamineQO) {
        return bankFlowExamineCustomMapper.selectProductList(bankFlowExamineQO);
    }

    @Override
    public List<ReturnMoneyVO> selectReturnMoneyList(BankFlowExamineQO bankFlowExamineQO) {
        return bankFlowExamineCustomMapper.selectReturnMoneyList(bankFlowExamineQO);
    }

    @Override
    public ReturnMoneyVO selectCurExamineReturnMoney(String examineId) {
        return bankFlowExamineCustomMapper.selectCurExamineReturnMoney(examineId);
    }

    @Override
    public int delByProductOrderId(String productOrderId) {
        return bankFlowExamineCustomMapper.delByProductOrderId(productOrderId);
    }
}
